﻿<Window x:Class="TicTacToe.UI.NetJoinPropertiesWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:components="clr-namespace:TicTacToe.UI.Components"
        Icon="..\3dtictactoe.png" Title="Join Network Game" Height="200"
        Width="250" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen"
        Closing="Window_Closing" x:ClassModifier="internal">
    <StackPanel Orientation="Vertical">
        <GroupBox Margin="2,0" Height="58" Header="Player Properties" >
            <components:PlayerPropertyControl x:Name="playerControl" />
        </GroupBox>

        <GroupBox Margin="2,0" Grid.Row="1" Header="Server Properties" >
            <Grid>

                <Grid.RowDefinitions>
                    <RowDefinition Height="1*" />
                    <RowDefinition Height="1*" />
                </Grid.RowDefinitions>
                
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="0.5*" />
                </Grid.ColumnDefinitions>

                <Label Content="Host Address" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" />
                <TextBox Name="hostTextBox" Text="localhost"  Width="140" Grid.Column="0" Grid.Row="1"  HorizontalContentAlignment="Center"/>
                
                <Label Content="Port" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" />
                <TextBox Name="portTextBox" Width="60" Grid.Column="1" Grid.Row="1" Text="13131" HorizontalContentAlignment="Center"  />
            </Grid>
        </GroupBox>

        <StackPanel Margin="0,6,6,0" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Margin="0,0,3,0" Style="{StaticResource buttonStyle}" IsCancel="True" Height="23" Width="75" VerticalAlignment="Center" Content="Cancel" Click="button2_Click" />
            <Button Margin="3,0,6,0" IsEnabled="False" Style="{StaticResource buttonStyle}" IsDefault="True" Name="button1" Height="23" Width="75" VerticalAlignment="Center" Content="Continue" Click="button1_Click" />
        </StackPanel>
    </StackPanel>
</Window>
